package com.kakaxi.mybilibili.bean;

import com.kakaxi.mybilibili.utils.CountUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * 番剧主页面的集成信息类
 * Created by kakaxi on 16/10/17.
 */

public class DramaTotalItemBean {

    /**
     * 轮播信息数组
     */
    private List<BannerItemBean> bannerItemList;

    /**
     * 新番信息数组
     */
    private List<SerializingItemBean> newSerializingItemList;

    /**
     * 上季度新番信息数组
     */
    private List<SerializingItemBean> lastSerializingItemList;

    /**
     * 推荐番剧信息数组
     */
    private List<DramaRecommendItemBean> dramaRecommendItemList;

    public DramaTotalItemBean() {
    }

    public DramaTotalItemBean(ArrayList<BannerItemBean> bannerItemList,
                              ArrayList<SerializingItemBean>
                                      newSerializingItemList, ArrayList<SerializingItemBean>
                                      lastSerializingItemList,
                              ArrayList<DramaRecommendItemBean> dramaRecommendItemList) {
        this.bannerItemList = bannerItemList;
        this.newSerializingItemList = newSerializingItemList;
        this.lastSerializingItemList = lastSerializingItemList;
        this.dramaRecommendItemList = dramaRecommendItemList;
    }

    /**
     * 获取所有数据的数目大小
     *
     * @return
     */
    public int getCount() {
        // 1代表的是轮播的数据, 因为轮播只占用了一项
        return 1 + CountUtil.listSizeCount(newSerializingItemList) + CountUtil.listSizeCount
                (lastSerializingItemList) + CountUtil.listSizeCount(dramaRecommendItemList);
    }

    public List<BannerItemBean> getBannerItemList() {
        return bannerItemList;
    }

    public void setBannerItemList(List<BannerItemBean> bannerItemList) {
        this.bannerItemList = bannerItemList;
    }

    public List<SerializingItemBean> getNewSerializingItemList() {
        return newSerializingItemList;
    }

    public void setNewSerializingItemList(List<SerializingItemBean> newSerializingItemList) {
        this.newSerializingItemList = newSerializingItemList;
    }

    public List<SerializingItemBean> getLastSerializingItemList() {
        return lastSerializingItemList;
    }

    public void setLastSerializingItemList(List<SerializingItemBean> lastSerializingItemList) {
        this.lastSerializingItemList = lastSerializingItemList;
    }

    public List<DramaRecommendItemBean> getDramaRecommendItemList() {
        return dramaRecommendItemList;
    }

    public void setDramaRecommendItemList(List<DramaRecommendItemBean> dramaRecommendItemList) {
        this.dramaRecommendItemList = dramaRecommendItemList;
    }
}
